/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.scrumpmt.domain;

import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author agumpg
 */
@Entity
@Table(name = "ESFUERZO")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Esfuerzo.findAll", query = "SELECT e FROM Esfuerzo e"),
    @NamedQuery(name = "Esfuerzo.findById", query = "SELECT e FROM Esfuerzo e WHERE e.id = :id"),
    @NamedQuery(name = "Esfuerzo.findByFec", query = "SELECT e FROM Esfuerzo e WHERE e.fec = :fec"),
    @NamedQuery(name = "Esfuerzo.findByDuracion", query = "SELECT e FROM Esfuerzo e WHERE e.duracion = :duracion")})
public class Esfuerzo extends BaseEntity {
    @Column(name = "fec", nullable=false)
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date fec;
    @Column(name = "duracion", nullable=false)
    private float duracion;
    @JoinColumn(name = "id_tarea_fk", referencedColumnName = "id")
    @ManyToOne(optional = false)
    private Tarea idTareaFk;

    public Esfuerzo() {
        
    }

    public Date getFec() {
        return fec;
    }

    public void setFec(Date fec) {
        this.fec = fec;
    }

    public float getDuracion() {
        return duracion;
    }

    public void setDuracion(float duracion) {
        this.duracion = duracion;
    }

    public Tarea getIdTareaFk() {
        return idTareaFk;
    }

    public void setIdTareaFk(Tarea idTareaFk) {
        this.idTareaFk = idTareaFk;
    }

}
